package me.muci.singletonPattern;

import java.util.Objects;

/**
 * ClassName: Test <br/>
 * Description: <br/>
 * date: 2021/8/5 9:23<br/>
 *
 * @author muci<br />
 * @description
 * @since JDK 1.8
 */
public class Test {
    @org.junit.Test
    public void test(){
        SingletonClass instance = SingletonClass.getInstance();
        SingletonClass instance1 = SingletonClass.getInstance();
        boolean equals = Objects.equals(instance, instance1);
        System.out.println(equals);
    }

    @org.junit.Test
    public void test1(){

    }
}
